requestObj = null;
function setRead(id, read, component) {
	if (!read) {
		if (window.XMLHttpRequest) {
			requestObj = new XMLHttpRequest();
		} else {
			requestObj = new ActiveXObject("Microsoft.XMLHTTP");
		}

		requestObj.open("POST", "messageRead?id=" + id, true);
		requestObj.send(null);
		changeClassName(component);
	}
	
}

function changeClassName(id) {
	parent.document.getElementById(id).className = 'read';
}
